package org.sith.taskrunner.gwt.client.services.taskrunner;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.core.client.GWT;
import org.sith.taskrunner.gwt.shared.domains.WrapperData;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: sith
 * Date: 11/3/10
 * Time: 8:39 PM
 * To change this template use File | Settings | File Templates.
 */
@RemoteServiceRelativePath("GetTasksToRunService")
public interface GetTasksToRunService extends RemoteService {

     public List<WrapperData> getWrappersData();

    /**
     * Utility/Convenience class.
     * Use GetTasksToRunService.App.getInstance() to access static instance of GetTasksToRunServiceAsync
     */
    public static class App {
        private static final GetTasksToRunServiceAsync ourInstance = (GetTasksToRunServiceAsync) GWT.create(GetTasksToRunService.class);

        public static GetTasksToRunServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
